Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for mocha 0.12 vs 2.5.1 #35

Closed
wants to merge 1 commit into from
Closed

Conversation

grosser
Copy link
Contributor

@grosser grosser commented Jul 5, 2012

otherwise fails with

/Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:117:in `run_test': undefined method `responds_to?' for AccountDataCenterTest:Test::Unit::TestSuite (NoMethodError)
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:53:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:93:in `run_suite'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:43:in `block in run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:82:in `with_listener'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:39:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunner.rb:40:in `start_mediator'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunner.rb:25:in `start'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:378:in `block in run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:434:in `change_work_directory'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:377:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:58:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit.rb:330:in `block in <top (required)>'
rake aborted!

@grosser
Copy link
Contributor Author

grosser commented Jul 5, 2012

please bump-patch+release after merging this, I want dots+diff without monkeypatchs asap :)

@kou
Copy link
Member

kou commented Jul 6, 2012

Could you show your test scripta that occurs the problem?
I want to confirm it on my environment.

@grosser
Copy link
Contributor Author

grosser commented Jul 6, 2012

The problem seems to be mocha 0.12.0 you can play with it here:
https://github.com/grosser/soft_deletion/tree/foo

@kou
Copy link
Member

kou commented Jul 8, 2012

Thanks for providing it. I could reproduce it on my environment.

It seems that it should be resolved in mocha not test-unit.
I submitted a pull request to mocha. :-)
freerange/mocha#89

So I'll close this issue.

@kou kou closed this Jul 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants